﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Hanel.DTN.News;
using DTN.Core;
using System.Data;

public partial class Control_Home_7TinNgang : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Display();
    }
    protected void Display()
    {
        ItblContentManager obj = tblContentManager.CreateInstance();
        DataTable dt = obj.SelecttblContentDynamic_top("Top 7", "Status=1", "ID_Content desc"); //chua xong chay show demo
        //int id = int.Parse(dt.Rows[5]["ID"].ToString());
        //DataTable dt2 = obj.SelecttblContentDynamic_top("Top 10", "Status=1 and id<" + id, "CreateDate desc");
        //int id2 = int.Parse(dt2.Rows[9]["ID"].ToString());

        DataList1.DataSource = dt;
        DataList1.DataBind();


    }
}